package main.java.com.NWPU.controllers;

import main.java.com.NWPU.models.User;
import main.java.com.NWPU.services.UserService;

public class UserController {

    private final UserService userService;

    @Autowired
    public UserController(UserService userService) {
        this.userService = userService;
    }

    @PutMapping
    public boolean updateUser(@RequestBody User user) {
        // 更新用户信息
        return userService.updateUser(user);
    }
}